[SOLVED?] SMB weard behaveure, resolving IP instead DNS name..
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Location: netherlands, europe, in a crapy house. xD
Distribution: openBSD
Posts: 52
Rep:
[SOLVED?] SMB weard behaveure, resolving IP instead DNS name..
ok.
situation is like this.
My nat is openBSD ,with maradns as DNS server.
works exelent.
my fileserver is openBSD
smb.conf is like below.
#======= Global Settings =========
[global]
workgroup = addicts
netbios name = fileserver
server string = Samba openBSD file Server %v
browseable = yes
log level = 3
log file = /var/log/smbd.%m
max log size = 4096
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192 SO_KEEPALIVE
name resolve order = hosts
getwd cache = yes
read raw = yes
write raw = yes
deadtime = 30
keepalive = 60
#share modes = yes
max xmit = 65535
load printers = no
security = Share
hosts allow = 192.168.0. 127.
printable = no
dns proxy = no
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
passdb backend = tdbsam
#======== Share Definitions ===========
[%m home]
browseable = yes
comment = PC Directories %m
path = /home/%m
public = no
writable = yes
[muziek RO]
path = /mnt/hd1/smb/muziek
browseable = yes
comment = Muziek
public = yes
writable = no
/etc and much more shares
where %m is the machine name what is in my network. (one of many)
for every machine i have created a account, and also made a password for samba.
added DNS for name resolving to the IP in the lan.
works great.
now comes the problem.
when i browse to the fileservers home directory ,made for a specific machine (like desktop)
i should see the common READ ONLY shares, what i do.
but i should also see a share named desktop.
there comes now my problem.
most of the time i only see its IP adress.
i double checked, all is ok, other machines i do see its DNS name.
and can access it.
can someone tell me what is going wrong?
when i ping from the fileserver to its name, i see its correct IP.
so the DNS server is correct working in my lan.
when i see the IP , i CANT access its directory, i have several users who i granted access to it, they mostly complain that they only also see the IP instead the name.
1. Why isn't your organization's DNS resolving by name?
... and ...
2. Why isn't your Samba granting correct permissions to those who access by IP address?
I'd tackle the first question, first (and I'll betcha the answer is probably "Active Directory" ;-))
Location: netherlands, europe, in a crapy house. xD
Distribution: openBSD
Posts: 52
Original Poster
Rep:
1: it is, i can ping on name ,and see its IP..
2: that i is my question, it is seeing its correct IP ,but it should resolve in the computers name..
so i dont now if something is wrong on my SMB file..
and no, i dont use active directory, i shouldt now why..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.